package com.jzo2o.market.model.dto.response;

import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 优惠卷用户查询模型
 * @author itcast
 * @since 2023-09-16
 */
@Data
public class CouponSimpleInfoResDTO implements Serializable {
    @ApiModelProperty(value = "优惠券id", required = true)
    private Long id;

    @ApiModelProperty(value = "活动名称", required = true)
    private String name;

    @ApiModelProperty(value = "活动id", required = true)
    private Long activityId;

    @ApiModelProperty(value = "使用类型，1：满减，2：折扣", required = true)
    private CouponTypeEnum type;

    @ApiModelProperty(value = "折扣")
    private Integer discountRate;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "满减条件,0:表示无门槛", required = true)
    private BigDecimal amountCondition;

    @ApiModelProperty("优惠券过期时间")
    private LocalDateTime validityTime;

    @ApiModelProperty("使用时间")
    private LocalDateTime useTime;

    @ApiModelProperty("优惠券状态，1:未使用，2:已使用，3:已过期")
    private CouponStatusEnum status;
}